<?php

include_once 'common.php';

$content = json_stringify($payload->content);
$sql = "UPDATE trex_params SET content= '{$content}' WHERE name = '{$payload->name}'";
$result = exec_sql($sql);

output(['sql' => $sql, 'result' => $result, 'payload' => $payload]);